package com.designpattern.creating.abstractfactory;

import com.designpattern.creating.factory.BizInterFace;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author chengzelee
 * @Date 2022/11/24 13:59
 * @Desc 产线2
 */
@Slf4j
public class Factory2 implements FactoryInterFace{

    public BizInterFace getBizService(int bizType){
        switch (bizType){
            case  1 : {
                return new BizService3();
            }
            case  2: {
                return new BizService4();
            }
            default:
                log.info("没有匹配的业务类型！");
                return null;
        }
    }
}
